package com.lon.over.utils;

import android.content.Context;

/**
 * author: ctl | 陈泰龙
 * 创建时间: 2022/4/25
 * Describe:
 */
public class SizeUtils {
    public static int dip2px(Context context, float dpValue) {
        float scale = context.getResources().getDisplayMetrics().density;
        return (int) (dpValue * scale + 0.5f);
    }
}
